<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<script src="../Js/jquery.js"></script>
<script src="../Js/layer-v2.4/layer/layer.js"></script>
<script src="../Js/common_operations.js"></script>
<script src="../Js/publicFormCheck.js"></script>
<link rel="stylesheet" type="text/css" href="../Css/view.css">
<link rel="stylesheet" type="text/css" href="../Css/viewCss.css">

<style type="text/css">
h3 {
	font-size: 15px;
	color: #000000;
	display: inline
}
</style>
</head>
<body>
	<form id="itemsForm" action="">
		<input name="rid" type="hidden" value="${DID}"> ${view} <br>
		<input name="" type="button" value="提交" onclick="addform();">
	</form>
	<script language="javascript">
  function CHECKON(obj,nm){
	  var arr = [];
	  if($(obj).is(':checked')){
		  $("table[id^='"+nm+"'] tr").each(function(){
		    	 arr[arr.length] = $(this).children("td").eq(0).find("input:checkbox").prop('checked', true);
		  })
	  }else{
		  $("table[id^='"+nm+"'] tr").each(function(){
		    	 arr[arr.length] = $(this).children("td").eq(0).find("input:checkbox").prop('checked', false);
		  })
	  }
  }
	function addform() {
		$.ajax({
					type : 'post',
					url : "<%=request.getContextPath()%>/supervise/updateJurisdiction.do",
						data : $("#itemsForm").serialize(),
						success : function(data) {
							if (data > 0) {
								alert("修改成功");
							} else {
								alert("修改失败");
							}
						}
					});

		}
	</script>
</body>
</html>
